/*
 * @Author: 张小平
 * @Date:   2025-05-01
 * @Email:  qqshuqian@163.com
 * @Copyright © 2024 aseyun. All rights reserved.
 */
import request from '@/framework-core/axios';
import website from '@/framework-core/config/website';

export const setOrderItemList = (column, asc = true) => {
  let orderItemList = []
  if (column) {
    orderItemList = [{
      asc,
      column
    }]
  }
  return orderItemList
}


/**
 * 查询表单
 * @param path
 * @param query 查询条件
 */
export function listForm(name) {

  return request({
    url: website.baseUrl+'/api/form/model/list',
    method: 'post',
    data: {"name":name}
  })
}


/**
 * 分页查询用户
 * @param path
 * @param query 查询条件
 */
export function userPage(data) {

  return request({
    url: website.baseUrl+'/api/middle/userPage',
    method: 'post',
    data: data
  })
}



/**
 * 树形组织
 */
export function orgTree() {

  return request({
    url: website.baseUrl+'/api/middle/orgTree',
    method: 'post'
  })
}

/**
 * 角色
 */
export function roleList() {

  return request({
    url: website.baseUrl+'/api/middle/roleList',
    method: 'post'
  })
}

